package com.cheval.rpcframe.handler;

import com.cheval.rpcframe.common.Invocation;

import javax.servlet.http.HttpServletResponse;

public class HandlerContext {

    protected Handler handler;
    protected Invocation invocation;

    public HandlerContext(Handler handler, Invocation invocation) {
        this.handler = handler;
        this.invocation = invocation;
    }

    public void handle(HttpServletResponse response) {
        this.handler.handle(this, response);
    }
}
